package com.local.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_car_in_repertory")
public class LocalCarInRepertory {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "car_in_uuid")
    private String carInUuid;

    @NotNull
    @Column(name = "car_in_time")
    private Date carInTime;

    @Column(name = "car_no")
    private String carNo;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "car_type_uuid")
    private String carTypeUuid;

    @NotEmpty
    @Length(min=1,max=12)
    @Column(name = "pay_type")
    private String payType;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "expire_time")
    private Date expireTime;

    @NotNull
    @Column(name = "open_type")
    private Byte openType;

    @Column(name = "charge_uuid")
    private String chargeUuid;

    @Column(name = "status_")
    private Byte status;

    @Column(name = "attr_")
    private String attr;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getCarInUuid() {
        return carInUuid;
    }

    public void setCarInUuid(String carInUuid) {
        this.carInUuid = carInUuid == null ? null : carInUuid.trim();
    }

    public Date getCarInTime() {
        return carInTime;
    }

    public void setCarInTime(Date carInTime) {
        this.carInTime = carInTime;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public String getCarTypeUuid() {
        return carTypeUuid;
    }

    public void setCarTypeUuid(String carTypeUuid) {
        this.carTypeUuid = carTypeUuid == null ? null : carTypeUuid.trim();
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType == null ? null : payType.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Byte getOpenType() {
        return openType;
    }

    public void setOpenType(Byte openType) {
        this.openType = openType;
    }

    public String getChargeUuid() {
        return chargeUuid;
    }

    public void setChargeUuid(String chargeUuid) {
        this.chargeUuid = (chargeUuid == null ? null : chargeUuid.trim());
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = (attr == null ? null : attr.trim());
    }
}